/*
 * @(#)UserDaoImpl.java 2013-4-10 ����01:35:11 Order
 */
package com.dingtalk.dingbotmgr.dao.impl;

import java.util.List;

import com.dingtalk.dingbotmgr.dao.PaymentCategoryDao;
import com.dingtalk.dingbotmgr.model.PaymentCategory;
import com.dingtalk.dingbotmgr.model.Project;
import org.springframework.stereotype.Component;

/**
 * UserDaoImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("paymentCategoryDao")
public class PaymentCategoryDaoImpl extends BaseDaoImpl<PaymentCategory> implements PaymentCategoryDao {

    @Override
    public List<PaymentCategory> listByProject(Project project) {
        return list(PaymentCategory.class, "from PaymentCategory pc where pc.project = ?", new Object[] {project});
    }
}
